#ifndef READERCENTER_H
#define READERCENTER_H

#include <QWidget>
#include <reader.h>
#include <borrowbook.h>
#include <returnbook.h>
#include "QMyPageWidget.h"

namespace Ui {
class ReaderCenter;
}

class ReaderCenter : public QWidget
{
    Q_OBJECT

public:
    explicit ReaderCenter(void(*func)(void *),void *obj, QWidget *parent = 0);
    ~ReaderCenter();

    void notify();
private slots:
    void on_btn_personal_clicked();

    void on_btn_bbook_clicked();

    void on_btn_rbook_clicked();

    void on_btn_logout_clicked();

private:
    Ui::ReaderCenter *ui;
    void(*lp)(void *);
    void *lpobj;
};

#endif // READERCENTER_H
